Repository navigation
fix(find): give read-only find no-matches the same hint, and test the gesture viewport message - #5033
Conversation
|
Thanks for closing the read-only find gap. The change at b09017e is ready: read-only find no-matches now carry the same hint as the acting route, and the gesture viewport message is tested. No conflicts. The two cancelled "Body rules" runs look unrelated, because that job checks PR body structure, the diff does not touch it, and the cancellation fits a PR body edit that starts a new run; the other 16 checks pass, including the Android provider and contract suites that exercise this route. Not blocking, and fine to take or leave: the message 'find did not match any element' is still written at both throw sites (selector-read.ts:123 and find-match-resolution.ts:86), so a shared FIND_NO_MATCH_MESSAGE next to FIND_NO_MATCH_HINT would prevent drift, and the read-only hint is asserted only in the Android scenario, so a read-only args row in the contract test would cover the daemon route too. Not verified here: any local test run, the 11-mutant claim (no artifact is available), and the full call chain that sets dispatched: no for the read route. Before merge, the "Body rules" check needs a rerun on the unchanged head. |
…d-only routes, and check the read-only hint on the daemon route
|
Thanks for the follow-up. The code at b6a0e7e looks good: the earlier review found nothing blocking, and this update adds nothing that changes that. All 15 checks pass at this head, including the Android provider and find contract suites that exercise both changed throw sites, and no conflicts are known. Nothing blocks merge. Not verified here: local test runs, the 13-mutant claim in the PR body (no artifact is attached), and an end-to-end trace of the daemon wrapper that sets dispatched:'no' for the read route. This update does not touch that wrapper, and the contract and Android tests assert the behavior at head. |
Summary
Follow-up to #5018.
findthat matched nothing (exists,get text,get attrs) now carries the same recovery hint as the actingfind. It already reporteddispatched: no, andexistsstill fails on no match as before. The message and hint live in@agent-device/selectors, so both routes share them.commands.md: the "Retry after a failed command" list ofdispatched: norefusals now includes thefindno-match. The gesture line now says that a pinch, rotate, transform, or two-finger pan that cannot keep its fingers far enough apart names only the viewport, which is what the minimum-span refusal does. TheGESTURE_TRAJECTORY_OUT_OF_BOUNDSdescription inerror-reasons.mdcovers that case too.details.sample). The minimum-span refusal names no point and has no units hint. The find contract test checks the no-match hints forfind label X focus, barefind X, and the read-onlyfind label X exists.Before / after
Android provider scenario, read-only
findwith no match (error.data):Validation
b6a0e7eb4,check:affected --run --head,exactCommit: true: format, lint, typecheck, layering, fallow, build and vitest-related pass.check:doc-proseandcheck:command-docspass.